import * as server from '../server/business.js'
import Vue from 'vue'
import { Message, Loading } from "element-ui";

export default {
    namespaced: true,
    state: {
       
    },
    mutations: {

    },
    actions: {
        async update({},{url, params}){
            const { code } = await server.update(url, params)
            if(code===200)
                Message.success('操作成功')
            else
                return false
        }
    },
}
